added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2008 / VBVstoServerDocument / Readme.txt
blob4034c5d74dc0d399e594a462d67babf63c290f37
1 ========================================================================
2     VSTO : VBVstoServerDocument Project Overview
3 ========================================================================
5 /////////////////////////////////////////////////////////////////////////////
6 Use:
8 The VBVstoServerDocument project demonstrates how to use the ServerDocument
9 class to extract information from a VSTO customized Word document or Excel
10 Workbook; and also how to programmatically add / remove VSTO customizations.
12 /////////////////////////////////////////////////////////////////////////////
14 Note: The project must be compiled as x86 for it to work.
15 The 2003 Office version of ServerDocument calls VSTOStorageWrapper.dll which
16 is an x86 COM component, so the calling application must be an x86 process.
18 There are two versions of ServerDocument class, one for 2003 Office and the
19 other for 2007 Office.
21 The 2003 Office version can be found in assembly (part of VSTO 2005 SE):
22 Microsoft.VisualStudio.Tools.Applications.Runtime.dll
24 The 2007 Office version can be found in assembly (part of VSTO 3.0):
25 Microsoft.VisualStudio.Tools.Applications.ServerDocument.v9.0.dll
27 To add/remove the VSTO customization, call the static methods AddCustomization
28 and RemoveCustomization of the ServerDocument class.
30 To get detailed VSTO customization info from a document/workbook, construct
31 an instance of ServerDocument and then access its properties and methods.
33 /////////////////////////////////////////////////////////////////////////////
34 References:
36 ServerDocument Class (2003 System)
37 http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.tools.applications.runtime.serverdocument(VS.89).aspx
39 ServerDocument Class (2007 System)
40 http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.tools.applications.serverdocument.aspx
42 /////////////////////////////////////////////////////////////////////////////